using MediatR;
using MES.Server.API.Dto.Weather;
using ReturnValue;

namespace MES.Server.API.Application.Command.Weather
{
    /// <summary>
    /// 获取模拟天气命令
    /// </summary>
    public class GetMockWeatherCommand : IRequest<ApiResult<WeatherOutPut>>
    {
        /// <summary>
        /// 城市名称
        /// </summary>
        public string CityName { get; set; }

        /// <summary>
        /// 预报天数，默认7天
        /// </summary>
        public int Days { get; set; } = 7;

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="cityName">城市名称</param>
        /// <param name="days">预报天数</param>
        public GetMockWeatherCommand(string cityName, int days = 7)
        {
            CityName = cityName;
            Days = days;
        }

        /// <summary>
        /// 默认构造函数
        /// </summary>
        public GetMockWeatherCommand()
        {
        }
    }
}
